package whf.framework.exception;

import java.io.Serializable;


/**
 * 找不到对应主键对象时抛出异常
 * @author wanghaifeng
 *
 */
public class NotFoundException  extends DAOException{
	private static final long serialVersionUID=0;

	private Serializable key;
	
	public void setKey(Serializable key){
		this.key=key;
	}
	
	public Serializable getKey(){
		return this.key;
	}
	
	public NotFoundException() {
		super();
	}

	public NotFoundException(String message, Throwable cause) {
		super(message, cause);
	}

	public NotFoundException(String message) {
		super(message);
	}

	public NotFoundException(Throwable cause) {
		super(cause);
	}
}
